/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package estates.opcje;

import com.sun.webui.jsf.model.*;


/**
 *
 * @author Karol
 */
public class StaticOptionList extends OptionsList{

    private Option[] options2;

   public StaticOptionList(int firstId, String[] values){
        super();
        
        Option[] zabudowa = new Option[values.length];
        options2 = new Option[values.length+1];
        options2[0] = new Option("-1", "Nie wybrano");

        for(int i=0; i< values.length; i++){
           zabudowa[i] = new Option(Integer.toString(i+firstId), values[i]);
           options2[i+1] = new Option(Integer.toString(i+firstId), values[i]);
        }
        
        this.setOptions(zabudowa);
    }

    public Option[] getOptions2() {
        return options2;
    }

    public void setOptions2(Option[] options2) {
        this.options2 = options2;
    }

    @Override
    public Option[] getOptions() {
        return super.getOptions();
    }

    @Override
    public void setOptions(Option[] options) {
        super.setOptions(options);
    }



}
